from django import forms
from confs import getSubTypeList, SMART_TYPE_FORUM
from .models import  UserImage

class AddArticleForm(forms.Form):
    title = forms.CharField(required=True)
    content = forms.CharField(widget=forms.Textarea, required=True)

    
    '''
    exdata = forms.CharField(required=False)

    def clean_exdata(self):
        data = self.cleaned_data['data']
        return data
    '''


class ImageUploadForm(forms.ModelForm):
    class Meta:
        model = UserImage 
        fields = ['image']

